package com.zxshhy.beanLifecycle;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class TestBeanCreateInfo {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ScanBeanPathConfig.class);
        UserService userService = (UserService) applicationContext.getBean("com.zxshhy.beanLifecycle.UserServiceImpl");
//        userService.say();
        System.out.println("===================================");
        List<String> list = UserServiceImpl.list;
        System.out.println(list);
    }
}
